add an extension point to TopNav#813
Conversation
🦋 Changeset detectedLatest commit: f332b59 The changes in this PR will be included in the next version bump. This PR includes changesets to release 15 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
✅ Deploy Preview for myst-theme ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Pull request overview
Adds a small extension point to the site’s TopNav component to make it easier for callers to inject additional UI into the top navigation bar without modifying the core component.
Changes:
- Extends
TopNavprops with an optionalnavActionsslot (React.ReactNode). - Renders
navActionsin the right-side action area of the top navigation (betweenSearchandThemeButton).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
I've got a PR that roughly does this as well over here: |
|
Hey @choldgraf anyways... disclaimer: I'm really at the edge of my comfort zone here :) it looks like both approaches serve different purposes however here we're more after a way to extend the navbar programatically; but again, not an expert here :) |
|
I'd like to thank @choldgraf for having put together this example closing this one then |
for easing additions in the topnav area